package cn.hiapi.shopkeeper.service.order;

import cn.hiapi.basic.ResUtils;
import cn.hiapi.basic.service.AbsBasicService;
import cn.hiapi.shopkeeper.entity.order.CommentReplay;
import cn.hiapi.shopkeeper.jpa.order.CommentReplayJpa;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author AdinZ
 * @date 2023/1/31 0:45
 */
@Service
public class CommentReplayService extends AbsBasicService<CommentReplayJpa, CommentReplay, Long> {
    @Transactional
    public int readAll(long uid) {
        return ResUtils.getDefault(this.repository.readAll(uid, System.currentTimeMillis()));
    }
}
